package plus;

public class Variable {

	public final boolean declared;
	public final Type type;
	
	public final int depth, offset;
	public boolean assigned;
	
	public Variable(int depth, int offset) {
		this.depth = depth;
		this.offset = offset;
		this.declared = false;
		this.type = Type.variable();
	}
	public Variable(int depth, int offset, Type type) {
		this.depth = depth;
		this.offset = offset;
		this.declared = true;
		this.type = type;
	}
}
